package com.ruoyi.mes.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 实时能耗监控对象 tb_new_energy_monitor
 * 
 * @author ruoyi
 * @date 2025-05-14
 */
public class NewEnergyMonitor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long recordId;

    /** 关联设备 */
    @Excel(name = "关联设备")
    private Long equipmentId;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date monitorTime;

    /** 瞬时功率(KW) */
    @Excel(name = "瞬时功率(KW)")
    private BigDecimal powerConsumption;

    /** 电压(V) */
    @Excel(name = "电压(V)")
    private BigDecimal voltage;

    /** 电流(A) */
    @Excel(name = "电流(A)")
    private BigDecimal current;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setMonitorTime(Date monitorTime) 
    {
        this.monitorTime = monitorTime;
    }

    public Date getMonitorTime() 
    {
        return monitorTime;
    }
    public void setPowerConsumption(BigDecimal powerConsumption) 
    {
        this.powerConsumption = powerConsumption;
    }

    public BigDecimal getPowerConsumption() 
    {
        return powerConsumption;
    }
    public void setVoltage(BigDecimal voltage) 
    {
        this.voltage = voltage;
    }

    public BigDecimal getVoltage() 
    {
        return voltage;
    }
    public void setCurrent(BigDecimal current) 
    {
        this.current = current;
    }

    public BigDecimal getCurrent() 
    {
        return current;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("equipmentId", getEquipmentId())
            .append("monitorTime", getMonitorTime())
            .append("powerConsumption", getPowerConsumption())
            .append("voltage", getVoltage())
            .append("current", getCurrent())
            .toString();
    }
}
